﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002B5 RID: 693
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueSkipTeachingLevelScRsp : IMessage<ChessRogueSkipTeachingLevelScRsp>, IMessage, IEquatable<ChessRogueSkipTeachingLevelScRsp>, IDeepCloneable<ChessRogueSkipTeachingLevelScRsp>, IBufferMessage
	{
		// Token: 0x17000900 RID: 2304
		// (get) Token: 0x06001F08 RID: 7944 RVA: 0x00058317 File Offset: 0x00056517
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueSkipTeachingLevelScRsp> Parser
		{
			get
			{
				return ChessRogueSkipTeachingLevelScRsp._parser;
			}
		}

		// Token: 0x17000901 RID: 2305
		// (get) Token: 0x06001F09 RID: 7945 RVA: 0x0005831E File Offset: 0x0005651E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueSkipTeachingLevelScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000902 RID: 2306
		// (get) Token: 0x06001F0A RID: 7946 RVA: 0x00058330 File Offset: 0x00056530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueSkipTeachingLevelScRsp.Descriptor;
			}
		}

		// Token: 0x06001F0B RID: 7947 RVA: 0x00058337 File Offset: 0x00056537
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSkipTeachingLevelScRsp()
		{
		}

		// Token: 0x06001F0C RID: 7948 RVA: 0x00058340 File Offset: 0x00056540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSkipTeachingLevelScRsp(ChessRogueSkipTeachingLevelScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.skipRewardList_ = ((other.skipRewardList_ != null) ? other.skipRewardList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001F0D RID: 7949 RVA: 0x0005838C File Offset: 0x0005658C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSkipTeachingLevelScRsp Clone()
		{
			return new ChessRogueSkipTeachingLevelScRsp(this);
		}

		// Token: 0x17000903 RID: 2307
		// (get) Token: 0x06001F0E RID: 7950 RVA: 0x00058394 File Offset: 0x00056594
		// (set) Token: 0x06001F0F RID: 7951 RVA: 0x0005839C File Offset: 0x0005659C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000904 RID: 2308
		// (get) Token: 0x06001F10 RID: 7952 RVA: 0x000583A5 File Offset: 0x000565A5
		// (set) Token: 0x06001F11 RID: 7953 RVA: 0x000583AD File Offset: 0x000565AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList SkipRewardList
		{
			get
			{
				return this.skipRewardList_;
			}
			set
			{
				this.skipRewardList_ = value;
			}
		}

		// Token: 0x06001F12 RID: 7954 RVA: 0x000583B6 File Offset: 0x000565B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueSkipTeachingLevelScRsp);
		}

		// Token: 0x06001F13 RID: 7955 RVA: 0x000583C4 File Offset: 0x000565C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueSkipTeachingLevelScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.SkipRewardList, other.SkipRewardList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001F14 RID: 7956 RVA: 0x00058414 File Offset: 0x00056614
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.skipRewardList_ != null)
			{
				num ^= this.SkipRewardList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001F15 RID: 7957 RVA: 0x00058469 File Offset: 0x00056669
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001F16 RID: 7958 RVA: 0x00058471 File Offset: 0x00056671
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001F17 RID: 7959 RVA: 0x0005847C File Offset: 0x0005667C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this.skipRewardList_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.SkipRewardList);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001F18 RID: 7960 RVA: 0x000584D8 File Offset: 0x000566D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.skipRewardList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.SkipRewardList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001F19 RID: 7961 RVA: 0x00058530 File Offset: 0x00056730
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueSkipTeachingLevelScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.skipRewardList_ != null)
			{
				if (this.skipRewardList_ == null)
				{
					this.SkipRewardList = new ItemList();
				}
				this.SkipRewardList.MergeFrom(other.SkipRewardList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001F1A RID: 7962 RVA: 0x00058598 File Offset: 0x00056798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001F1B RID: 7963 RVA: 0x000585A4 File Offset: 0x000567A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.skipRewardList_ == null)
						{
							this.SkipRewardList = new ItemList();
						}
						input.ReadMessage(this.SkipRewardList);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000CBB RID: 3259
		private static readonly MessageParser<ChessRogueSkipTeachingLevelScRsp> _parser = new MessageParser<ChessRogueSkipTeachingLevelScRsp>(() => new ChessRogueSkipTeachingLevelScRsp());

		// Token: 0x04000CBC RID: 3260
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000CBD RID: 3261
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04000CBE RID: 3262
		private uint retcode_;

		// Token: 0x04000CBF RID: 3263
		public const int SkipRewardListFieldNumber = 13;

		// Token: 0x04000CC0 RID: 3264
		private ItemList skipRewardList_;
	}
}
